import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component:  (resolve) => require(['../views/index.vue'], resolve)
  },
  {
    path: '/PK',
    component:  (resolve) => require(['../views/PK.vue'], resolve)
  },
  {
    path: '/result',
    component:  (resolve) => require(['../views/result.vue'], resolve)
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
